import customtkinter


darkmode = False
if darkmode:
    customtkinter.set_appearance_mode('dark')
else:
    customtkinter.set_appearance_mode('light')

customtkinter.set_default_color_theme('green')

class App(customtkinter.CTk):
    def __init__(self):
        super().__init__()

        self.geometry('400x320')
        
        frame = customtkinter.CTkFrame(self)
        frame.pack(pady=40, padx=40, fill='both', expand=True)
        
        label = customtkinter.CTkLabel(master=frame, text='Login System')
        label.pack(pady=10, padx=10)

        self.username_entry = customtkinter.CTkEntry(master=frame, placeholder_text='Username')
        self.username_entry.pack(pady=10, padx=10)

        self.password_entry = customtkinter.CTkEntry(master=frame, placeholder_text='Password', show='*')
        self.password_entry.pack(pady=10, padx=10)

        button = customtkinter.CTkButton(master=frame, text='Login', command=self.login)
        button.pack(pady=10, padx=10)

        checkbox = customtkinter.CTkCheckBox(master=frame, text='Remember Me')
        checkbox.pack(pady=10, padx=10)

    def login(self):
        print('Username =', self.username_entry.get())
        print('Password =', self.password_entry.get())


app = App()
app.mainloop()
